import unittest
import time
from automatic.tools.HTMLTestRunner import HTMLTestRunner

# 定义测试套件
suite = unittest.defaultTestLoader.discover("../scripts/")

# 报告生成目录及文件名称
dir_path = "../report/{}.html".format(time.strftime("%Y_%m_d %H_%M_%S"))
# 获取文件流并调用run运行，生成测试报告
with open(dir_path, "wb") as f:
    HTMLTestRunner(stream=f,title="LLM自动化测试报告",description="操作系统：win10")